Skip to main content

.Net Engine Enable Logging

How to Enable logging in .Net Engine

caution

Enabling logging will have an impact on generation time of your document. Make sure to turn logging off after you have created your log file.

  1. Navigate to your app.exe.config file located on the root directory of your Engine.

  2. Open the app.exe.config file in Notepad++

img

  1. Make sure your configSectons tag contains <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a" /> as shown below
  <configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a" />
<section name="WindwardReports" type="System.Configuration.NameValueSectionHandler" />
</configSections>
  1. Change the level value to DEBUG and save the file.

  2. Attempt to Generate your report to create your log file.

  3. If your log file was not created, make call to log4net.Config.XmlConfigurator.Configure(); prior to calling any Windward methods.

  4. Set the level value back to info or warn and save the file.